package com.example.item;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "点赞")
public class Like {
    @Schema(description = "点赞编号")
    @TableId(type = IdType.AUTO)
    private Integer likeId;
    @Schema(description = "点赞人类型（个人:2，单位:1）")
    private Integer likeType;
    @Schema(description = "点赞时间")
    private Date likeTime;
    @Schema(description = "点赞页面类型（其他:0，商品:1）")
    private Integer likePost;
    @Schema(description = "种类（看过:1，点赞:2）")
    private Integer likeAction;
    @Schema(description = "点赞状态（0：正常，1：停用）")
    private Integer likeStatus;
    @Schema(description = "是否删除（是:1，否:0）")
    @TableLogic(value = "0", delval = "1")
    @TableField(fill = FieldFill.INSERT)
    private Integer likeIsdelete;
}
